package net.dgg.rz.production.dao;

import net.dgg.rz.production.entity.PunishDetail;
import net.dgg.rz.production.entity.PunishScheme;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @author:cuipeng
 * @create 2019/03/19
 **/
@Component
public interface PunishDetailDao {
    //根据扣罚方案ID查询扣罚方案明细列表
    List<Map> selectPunishDetailByPunishId(Map map);
    //新增扣罚方案明细
    int addPunishDetail(PunishDetail punishDetail);
    //修改扣罚方案明细
    int updatePunishDetailById(PunishDetail punishDetail);
    //批量修改方案明细
    void editPunishDetails(@Param("punishDetailList") List<PunishDetail> punishDetailList);

    PunishDetail queryPunishDetailByPunishId(Map map);
}
